package com.mdd.common.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 用户账户记录实体
 * @author panweiliang
 */
@Data
public class PointsLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    private Integer id; //
    private Integer userId; // 会员id
    private Integer ownerId;
    private Integer changeType; // 变动类型
    private Integer action; // 动作:1-增加；0-减少
    private BigDecimal changePoints; // 变动数量
    private BigDecimal changelessPoints;
    private BigDecimal additionalPoints;
    private BigDecimal leftPoints; // 变动后数量
    private String remark; // 备注
    private String feature; // 预留扩展字段
    private String associationSn;
    private Long createTime; // 创建时间
    private Long updateTime; // 更新时间
    private Long deleteTime; // 删除时间

}